Shaders = {}
playerEffect = [[

		extern vec2 position;
		extern float size;
		extern vec4 col;

		float metaball(vec2 x)
		{
			x /= 1.0 * size;
			return 1.0 / (dot(x, x) + .00001);
		}

		vec4 effect(vec4 color, Image tex, vec2 tc, vec2 pc)
		{
			float p = 0.0;
			p += metaball(pc - position);
			return vec4(col[0]*p, col[1]*p, col[2]*p, col[3]*p);
		}
		
	]]
	
noEffect = [[

		vec4 effect(vec4 color, Image tex, vec2 tc, vec2 pc)
		{
			return vec4(color[0], color[1], color[2], color[3]);
		}
		
	]]
	
--[[

	Gets
	
--]]
--Returns the ball effect
function Shaders.getPlayerEffect()

	return playerEffect
	
end

--Returns the lack of effect
function Shaders.getNoEffect()

	return noEffect
	
end